package com.cos.lession67.dao;

import com.cos.lession67.entity.Emp;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @author: COS
 * @time: 2022/9/21 10:11
 * @description:
 */
public interface EmpDao {

    List<Emp> getAll();

    Emp getEmpByEno(@Param("eno") int eno);

    Emp getEmpByEnameAndPwd(@Param("ename") String ename, @Param("pwd") String pwd);

    int addEmp(Emp emp);

    int updateEmp(Emp emp);

    int delEmp(@Param("eno") int eno);

    int updateEmpSex(@Param("eno")int eno,@Param("esex")String esex);

    List<Emp> getEmpByKey(@Param("ename")String ename);

    Long getCount();

    /* 查询 */
    List<Emp> getEmpByDate(Map<String,Object> map);
}
